package com.fengdi.publicObject;

import java.util.Arrays;

/**
 * @Description 前缀树节点
 * @Date 15:45
 */
public class TrieNode {
    public boolean isEnd = false;
    public char value = ' ';
    public TrieNode[] childs = new TrieNode[26];

    public TrieNode() {}
    public TrieNode(char value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "TrieNode{" +
                "isEnd=" + isEnd +
                ", value=" + value +
                ", childs=" + Arrays.toString(childs) +
                '}';
    }
}
